home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / t_sys5 / 92052tar.gz / 920528.tar / trace.h < prev    next >
C/C++ Source or Header  |  1992-05-28  |  3KB  |  88 lines

  1. /* @(#) $Header: trace.h,v 1.7 92/05/28 13:50:39 deyke Exp $ */
  2.  
  3. #ifndef _TRACE_H
  4. #define _TRACE_H
  5.  
  6. #ifndef _MBUF_H
  7. #include "mbuf.h"
  8. #endif
  9.  
  10. #ifndef _IFACE_H
  11. #include "iface.h"
  12. #endif
  13.  
  14. #include <stdio.h>
  15.  
  16. /* Definitions for packet dumping */
  17.  
  18. /* Table of trace subcommands */
  19. struct tracecmd {
  20.     char *name;     /* Name of trace subcommand */
  21.     int val;        /* New setting for these bits */
  22.     int mask;       /* Mask of bits affected in trace word */
  23. };
  24. extern struct tracecmd Tracecmd[];      /* Defined in trace.c */
  25.  
  26. /* List of address testing and tracing functions for each interface.
  27.  * Entries are placed in this table by conditional compilation in main.c.
  28.  */
  29. struct trace {
  30.     int (*addrtest) __ARGS((struct iface *iface,struct mbuf *bp));
  31.     void (*tracef) __ARGS((FILE *,struct mbuf **,int));
  32. };
  33.  
  34. extern struct trace Tracef[];
  35.  
  36. /* In trace.c: */
  37. void dump __ARGS((struct iface *ifp,int direction,unsigned type,struct mbuf *bp));
  38. void raw_dump __ARGS((struct iface *ifp,int direction, struct mbuf *bp));
  39. void trace_log __ARGS((struct iface *ifp,char *fmt, ...));
  40. void shuttrace __ARGS ((void));
  41. int tprintf __ARGS((struct iface *ifp,char *fmt,...));
  42.  
  43. /* In arcdump.c: */
  44. void arc_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  45. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  46.  
  47. /* In arpdump.c: */
  48. void arp_dump __ARGS((FILE *fp,struct mbuf **bpp));
  49.  
  50. /* In ax25dump.c: */
  51. void ax25_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  52. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  53.  
  54. /* In enetdump.c: */
  55. void ether_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  56. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  57.  
  58. /* In icmpdump.c: */
  59. void icmp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  60.  
  61. /* In ipdump.c: */
  62. void ip_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  63.  
  64. /* In kissdump.c: */
  65. void ki_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  66. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  67.  
  68. /* In nrdump.c: */
  69. void netrom_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  70.  
  71. /* In pppdump.c: */
  72. void ppp_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  73.  
  74. /* In ripdump.c: */
  75. void rip_dump __ARGS((FILE *fp,struct mbuf **bpp));
  76.  
  77. /* In slcompdump.c: */
  78. void sl_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  79. void vjcomp_dump __ARGS((FILE *fp,struct mbuf **bpp,int unused));
  80.  
  81. /* In tcpdump.c: */
  82. void tcp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  83.  
  84. /* In udpdump.c: */
  85. void udp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  86.  
  87. #endif  /* _TRACE_H */
  88.